/**
 * 
 */
package dataflowscheme.engine.core;

/**
 * A CleanEvent is created when after execution of processing entity
 * there are not data or signals to send and clean action to allow 
 * a new execution should be done. CleanEvent is created by one of 
 * execution event parser threads, and it is created and processed 
 * in the same processing entity.
 * 
 * @author <a href="mailto:misiak7@gmail.com">Michal Antolik</a>
 *
 */
public class CleanEvent implements IEvent {

	private IPE pe;
	
	public CleanEvent(IPE pe) {
		this.pe = pe;
	}
	
	/* (non-Javadoc)
	 * @see dataflowscheme.engine.core.IEvent#execute()
	 */
	public void execute() {
		pe.receiveResponse(EventMsg.cleanPEmanually, null);
	}

}
